<?php
use Jialeo\LaravelSchemaExtend\Schema;
//use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateShopPictureCollectionsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up() 
    {
        Schema::create('shop_picture_collections', function (Blueprint $table) {
            $table->comment = '直播收藏表';
            $table->increments('id')->comment('直播收藏ID');
            $table->integer('user_id')->comment('用户ID');
            $table->integer('picture_id')->comment('直播ID');
			$table->tinyInteger('status')->default(1)->comment('是否收藏:0=否,1=是');
            $table->timestamp('created_at')->nullable()->comment('创建时间');
			$table->timestamp('updated_at')->nullable()->comment('更新时间');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('shop_picture_collections');
    }
}
